public with sharing class TestUtilities {
     
    public Contact      aContac         {get; set;}
    public Attachment   aAttachment     {get; set;}
    
    public void generateContact(){
        
        //Create Account and Mark it as Master Account Flag
        Account ajmanAcc = new Account(Name='test' , Master_Account_Flag__c = true);
        insert ajmanAcc ;        
        
        Country__c CountryObject = new Country__c();
        CountryObject.Name = 'Egypt';
        CountryObject.Is_Active__c = true;
        insert CountryObject ;
        
        this.aContac                = new Contact();
        this.aContac.AccountId = ajmanAcc.id ;
        this.aContac.firstName      = 'Test';
        this.aContac.LastName       = 'Test'; 
        this.aContac.Arabic_Name__c = 'Arabic Name';
        this.aContac.Gender__c      = 'Female';
        this.aContac.Country_of_Birth__c = CountryObject.Id;
        this.aContac.Country_of_Residence__c = CountryObject.Id;
        this.aContac.Nationality__c = CountryObject.Id;
        
        //this.aContac.Passport_Number__c = '9654846' ;
        //this.aContac.Passport_Issue_Date__c = PassportObject.Passport_Issue_Date__c;
        //this.aContac.Passport_Expiry_Date__c = PassportObject.Passport_Expiry_Date__c ;
        //this.aContac.Passport_Number__c = PassportObject.Passport_Number__c ;
        
        insert this.aContac;
        
        /*Passport_History__c PassportObject = new Passport_History__c();
        //PassportObject.Name = 'testpass';
        PassportObject.isCurrent__c = true;
        PassportObject.Passport_Expiry_Date__c = Date.today();
        PassportObject.Passport_Issue_Date__c = Date.today();
        PassportObject.Passport_Number__c = '21496325';
        PassportObject.Passport_Holder__c = this.aContac.Id;
        insert PassportObject;*/

        this.aAttachment = new Attachment();
        this.aAttachment.Body = Blob.valueOf('String');
        
    }
    
    public static TestUtilities generateTest(){
       TestUtilities e = new TestUtilities();
       e.generateContact();
       return e;
    }
}